package com.cn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cn.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrdersService extends IService<Orders>{

    Page<Orders> getOrdersList(@Param("number") String number, @Param("status")Integer status,
                               @Param("phone")String phone, @Param("consignee")String consignee,
                               Page page);


    Orders selectAllById(@Param("id") Long id);

    Orders selectById(@Param("id") Long id);

    int deleteOrders(Long id);

    Orders selectOrdersbyid(Long id);

    int updateorder(Orders orders);

    Integer updateAddress(Orders orders);

    Integer updateStatus(Orders orders);

}
